<?php
/**
 * This file is part of Notadd.
 *
 * @datetime 2017-11-22 16:44:20
 */

use Illuminate\Database\Schema\Blueprint;
use Notadd\Foundation\Database\Migrations\Migration;

/**
 * Class CreateExtFullReductionActivesTable.
 */
class CreateExtFullReductionActivesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $this->schema->create('ext_full_reduction_actives', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('活动名称');
            $table->integer('store_id')->comment('活动店铺');
            $table->string('time_start')->comment('开始活动时间');
            $table->string('time_end')->comment('活动结束时间');
            $table->text('rules')->comment('活动规则');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        $this->schema->drop('ext_full_reduction_actives');
    }
}
